package com.dp.controller;

import cn.hutool.json.JSONUtil;
import lombok.Data;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: dupeng
 * @CreateTime: 2024-12-19  15:01
 * @Description: TODO
 */
@RestController
@RequestMapping("/test")
public class TestController {


    @GetMapping
    public String test(Te str){
        String s = JSONUtil.toJsonStr(str);
        System.out.println(s);
        return s;
    }


}

@Data
class Te{
    private String str;
}